package com.king.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.king.model.dto.BorrowBooksDto;
import com.king.model.dto.BorrowBooksParams;
import com.king.model.common.PageParams;
import com.king.model.po.BorrowBooks;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * Mapper 接口
 * </p>
 *
 * @author king
 */
@Mapper
public interface BorrowBooksMapper extends BaseMapper<BorrowBooks> {

    List<BorrowBooksDto> getBorrowBooks(@Param("pageParams") PageParams pageParams, @Param("borrowBooksParams") BorrowBooksParams borrowBooksParams);

    Long getBorrowBooksCounts(@Param("borrowBooksParams") BorrowBooksParams borrowBooksParams);

}
